const routers = [{
    path: '/',
    meta: {
        title: ''
    },
    component: (resolve) => require(['./views/index.vue'], resolve)
},{
    path: '/main',
    meta: {
        title: ''
    },
    component: (resolve) => require(['./views/main.vue'], resolve),
    children: [
        {
            // 当 /main/body 匹配成功，
            // body 会被渲染在 main 的 <router-view> 中
            path: '/body',
            meta: {
                title: ''
            },
            component: (resolve) => require(['./views/body.vue'], resolve)
        }
    ]
}];
export default routers;